home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1996 June / macformat-038.iso / Demos / Interactive Wave / _DATAS / SHARED.Dxr / 00981.ls < prev    next >
Encoding:
Text File  |  1995-08-06  |  1.7 KB  |  91 lines

  1. on BalayCursMain
  2.   global DcCursMain, CursMain
  3.   if voidp(DcCursMain) or (DcCursMain = 0) then
  4.     cursor(-1)
  5.   else
  6.     set DcCursMain to 0
  7.     cursor(CursMain)
  8.   end if
  9. end
  10.  
  11. on SetAffTxtRoll AccuA
  12.   global DcCastRoll, CastRollEff
  13.   if AccuA = CastRollEff then
  14.     if DcCastRoll <> CastRollEff then
  15.       exit
  16.     end if
  17.   end if
  18.   set DcCastRoll to AccuA
  19. end
  20.  
  21. on AffTxtRoll
  22.   global DcCastRoll, SprRollOver, CastRollEff
  23.   set the castNum of sprite SprRollOver to DcCastRoll
  24.   set DcCastRoll to CastRollEff
  25. end
  26.  
  27. on GestBarreRoll
  28.   global DcTransit, DcDemo, SprRollOver, CastTextDemoRoll, glQTmemo, ComptBoucleEnter, DcBarrette, SprFondBar, NcRollBarrette
  29.   if DcTransit then
  30.     exit
  31.   end if
  32.   if DcDemo then
  33.     set the visible of sprite SprRollOver to the ticks / 30 mod 2
  34.     set the castNum of sprite SprRollOver to CastTextDemoRoll
  35.     exit
  36.   end if
  37.   if getAt(glQTmemo, 1) <> 0 then
  38.     set ComptBoucleEnter to (ComptBoucleEnter + 1) mod 8
  39.     if ComptBoucleEnter <> 0 then
  40.       exit
  41.     end if
  42.   end if
  43.   if DcBarrette then
  44.     set AccuRoll to rollOver(SprFondBar)
  45.     if AccuRoll then
  46.       if NcRollBarrette <> 1 then
  47.         BalayHAUT()
  48.       end if
  49.       BalayBAS()
  50.     else
  51.       if NcRollBarrette <> 0 then
  52.         BalayBAS()
  53.       end if
  54.       BalayHAUT()
  55.     end if
  56.     set NcRollBarrette to AccuRoll
  57.   else
  58.     BalayHAUT()
  59.   end if
  60.   AffTxtRoll()
  61.   BalayCursMain()
  62. end
  63.  
  64. on BalayBAS
  65.   global DcQuit
  66.   if DcQuit then
  67.     GestQuit()
  68.   else
  69.     BalayBarrette()
  70.   end if
  71. end
  72.  
  73. on BalayHAUT
  74.   BalayRollCadre()
  75.   BalayRollTexte()
  76.   BalayRollPict()
  77.   BalayRollAuto()
  78.   BalayRollGen()
  79.   BalayRollCast()
  80. end
  81.  
  82. on DesactiveRolls
  83.   SetDcBarrette(0)
  84.   SetDcRollCadre()
  85.   SetDcRollTexte()
  86.   SetDcRollPict()
  87.   SetDcRollAuto()
  88.   SetDcRollOver()
  89.   SetDcRollCast()
  90. end
  91.